/**
 * 
 */
package persistence.DAO;

import java.sql.PreparedStatement;
import java.sql.SQLException;


/**
 * @author hozakan
 *
 */
public abstract class DAOSQL implements DAO {
	protected PreparedStatement insert;
	protected PreparedStatement update;
	protected PreparedStatement delete;
	protected PreparedStatement select;
	protected PreparedStatement selectAll;
	
	protected abstract PreparedStatement prepareInsert() throws SQLException, ClassNotFoundException;
	protected abstract PreparedStatement prepareUpdate() throws SQLException, ClassNotFoundException;
	protected abstract PreparedStatement prepareDelete() throws SQLException, ClassNotFoundException;
	protected abstract PreparedStatement prepareSelect() throws SQLException, ClassNotFoundException;
	protected abstract PreparedStatement prepareSelectAll() throws SQLException, ClassNotFoundException;
}
